/**
 * Projeto final de Programacao Concorrente.
 * Prof. Dr. Julio Estrella
 * 
 * Geracao aleatoria de palavras.
 * 
 * Grupo 07 - Turma B
 * Fabio de Albuquerque Dela Antonio 6792558
 * Leonardo Henrique Omoto 6793160
 * Pedro Paulo Canto Martucci 6793100
 * 
 * hashMap.h
 */

#ifndef HASHMAP_H_
#define HASHMAP_H_

#include <fstream>
using std::ifstream;

#include "header.h"

class hashMap
{

    public:

        //construtor
        hashMap(const char *);

        int check(string);

        int getWords();

        bool done();

        map<string,int>::iterator getBegin();

        map<string,int>::iterator getEnd();

        string getWord(map<string,int>::iterator);
        
    private:

        //atributos
        map<string, int> Words;

        int found;

        void splitWord(string);

};


#endif /* HASHMAP_H_ */
